package adventuregame;

import java.util.Scanner;


/**
 * Handles console input and output.
 * @author Jesper & Simon
 */
public class Console {

    Scanner sc = null;

    /**
     * Intialise a new input scanner.
     */
    Console(){
        sc = new Scanner(System.in);
    }

    /**
     * Prints output with linebreak.
     * @param string output
     */
    public void println(String string) {
        System.out.println(string);
    }

    /**
     * Prints output.
     * @param s output
     */
    public void print(String s){
        System.out.print(s);
    }

    /**
     * Handles any given input.
     * @return input as String
     */
    public String in(){
        return sc.next();
    }

    /**
     * Handles any given Integer input.
     * @return input as int
     */
    public int inInt(){
        return sc.nextInt();
    }

}
